package com.alinesno.cloud.monitor.agent.dto.runtime;

import com.alinesno.cloud.monitor.agent.dto.BaseMonitorDto;

/**
 * 方法监控
 * 
 * @author WeiXiaoJin
 * @since 2020年1月25日 下午19:45:08
 */
public class MethodDto extends BaseMonitorDto {

	private long runTime; // 执行时间
	private String methodName; // 方法名称
	private String className; // 类名称
	private Object[] methodParams; // 参数

	// >>>>>> 新增统计_start
	private String methodKey; // 方法唯一值
	private String method; // 方法名(Method)
	private String type; // 类型(接口/实类/数据层)(Type)
	private String level; // 层次(Level)
	private String timePercent; // 每分钟调用次数(TimePercent)
	private int rps; // 每秒请求数(RPS)
	private int count; // 总请求数(Count)
	private double totalrunTime ; // 总的请求时间 
	private double avg; // 平均响应时间(Avg)
	private double min; // 最小响应时间(Min)
	private double max; // 最大响应时间(Max)
	private int fail; // 异常次数(Fail)
	private int ok; // 成功次数(OK)
	// >>>>>> 新增统计_end 

	public String getMethodKey() {
		return methodKey;
	}

	public double getTotalrunTime() {
		return totalrunTime;
	}

	public void setTotalrunTime(double totalrunTime) {
		this.totalrunTime = totalrunTime;
	}

	public void setMethodKey(String methodKey) {
		this.methodKey = methodKey;
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public String getTimePercent() {
		return timePercent;
	}

	public void setTimePercent(String timePercent) {
		this.timePercent = timePercent;
	}

	public int getRps() {
		return rps;
	}

	public void setRps(int rps) {
		this.rps = rps;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public double getAvg() {
		return avg;
	}

	public void setAvg(double avg) {
		this.avg = avg;
	}

	public double getMin() {
		return min;
	}

	public void setMin(double min) {
		this.min = min;
	}

	public double getMax() {
		return max;
	}

	public void setMax(double max) {
		this.max = max;
	}

	public int getFail() {
		return fail;
	}

	public void setFail(int fail) {
		this.fail = fail;
	}

	public int getOk() {
		return ok;
	}

	public void setOk(int ok) {
		this.ok = ok;
	}

	public Object[] getMethodParams() {
		return methodParams;
	}

	public void setMethodParams(Object[] methodParams) {
		this.methodParams = methodParams;
	}

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public long getRunTime() {
		return runTime;
	}

	public void setRunTime(long runTime) {
		this.runTime = runTime;
	}

}
